package com.hyjx.framework.component.task;

import com.hyjx.framework.orm.IBaseModel;

import java.io.Serializable;

/**
 * 任务实体
 */
@SuppressWarnings("serial")
public class TaskModel implements Serializable, IBaseModel {
    private String taskid;//id
    private String taskname;//任务名称
    private String tasktype;//任务类型 1spring bean 2java类  3sql语句
    private String classname;//类名称、springbean对象的id、sql语句
    private String methodname;//类或者springbean对象的方法名称、类型为3时，本字段为空
    private String cronexp;//CRON表达式
    private String status;//任务状态
    private String runstatus;//运行状态 运行中、暂停、完成、
    private String tasktypename;//任务类型名称
    private String startflowsys;    //随系统启动  1是，0否
    private String issingleton;        //是否单例 	1是，0否
    private String ipaddress;    //此任务限定服务器IP
    private String param1;    //参数1
    private String param2;    //参数2

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public String getStartflowsys() {
        return startflowsys;
    }

    public void setStartflowsys(String startflowsys) {
        this.startflowsys = startflowsys;
    }

    public String getIssingleton() {
        return issingleton;
    }

    public void setIssingleton(String issingleton) {
        this.issingleton = issingleton;
    }

    public String getIpaddress() {
        return ipaddress;
    }

    public void setIpaddress(String ipaddress) {
        this.ipaddress = ipaddress;
    }

    public String getTasktypename() {
        return tasktypename;
    }

    public void setTasktypename(String tasktypename) {
        this.tasktypename = tasktypename;
    }

    public String getRunstatus() {
        return runstatus;
    }

    public void setRunstatus(String runstatus) {
        this.runstatus = runstatus;
    }

    public String getTasktype() {
        return tasktype;
    }

    public void setTasktype(String tasktype) {
        this.tasktype = tasktype;
    }

    public String getMethodname() {
        return methodname;
    }

    public void setMethodname(String methodname) {
        this.methodname = methodname;
    }

    public void setTaskid(String taskid) {
        this.taskid = taskid;
    }

    public String getTaskid() {
        return this.taskid;
    }

    public void setTaskname(String taskname) {
        this.taskname = taskname;
    }

    public String getTaskname() {
        return this.taskname;
    }

    public void setClassname(String classname) {
        this.classname = classname;
    }

    public String getClassname() {
        return this.classname;
    }

    public void setCronexp(String cronexp) {
        this.cronexp = cronexp;
    }

    public String getCronexp() {
        return this.cronexp;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }
    
    @Override
    public String getModuleName() {
        return "com.hyjx.framework.component.task";
    }
}